package com.starinside.wp.repository;

import com.starinside.wp.domain.observation.ObservationListItemVO;
import com.starinside.wp.foundation.query.base.PagerQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2017/8/21
 * *******************************
 */
public interface ChildrenObservationRecordRepository {

    List<ObservationListItemVO> findByChildrenIdAndTimeBetween(String childrenId, String beforeTime, String afterTime);

    Page<ObservationListItemVO> findAllByChildrenIds(String[] childrenIds, PagerQuery pagerQuery);

    ObservationListItemVO findByRecordId(String recordId);


}
